package com.dotndot;

import android.app.Application;

public class MomApplication extends Application
{
    public static final boolean _DEBUG_ = true;

    /* Intro */
    public static final int INTRO_DELAY_TIME = 3000;
    public static final int BACK_KEY_DELAY_TIME = 2000;

    public static final int MIN_PW_LENGTH = 8;
    public static final int MAX_PW_LENGTH = 15;

    public static final int MAX_NICKNAME_LENGTH = 8;

    public static final int RESIZE_IMAGE_WIDTH = 640;
    public static final int RESIZE_IMAGE_HEIGHT = 480;

    public static final String DEVICE_OS = "Android";

    public static final String BABY_AVATAR_URL = "http://skyyy80.appspot.com/baby/avatar.dnd?index=";
    public static final String STORY_IMAGE_URL = "http://skyyy80.appspot.com/story/image.dnd?index=";

    // public static final String STORY_IMAGE_THUMB_URL =
    // "http://skyyy80.appspot.com/story/imageThumb.dnd?index=";

    public static enum NETWORK_CONNECT_STATE
    {
        NETWORK_NOT_CONNECT,
        NETWORK_3G_CONNECT,
        NETWORK_WIFI_CONNECT
    }

    private static UserInfo userInfo = null;

    // private static String aesKey = null;

    @Override
    public void onCreate()
    {
        super.onCreate();
        if( userInfo == null )
        {
            userInfo = new UserInfo();
        }
    }

    public void setUserInfo( UserInfo userInfo )
    {
        MomApplication.userInfo = userInfo;
    }

    public UserInfo getUserInfo()
    {
        return userInfo;
    }

    // public String getAesKey()
    // {
    // return aesKey;
    // }
    //
    // public void setAesKey( String aesKey )
    // {
    // MomApplication.aesKey = aesKey;
    // }

}
